package com.hzncc.scaffold.bean;

import cn.hutool.core.util.CharsetUtil;
import cn.hutool.crypto.Mode;
import cn.hutool.crypto.Padding;
import cn.hutool.crypto.symmetric.AES;

import java.util.Scanner;

/**
 * @Author: DrunkBear
 * @Date: 2022-06-17 14:30
 * @Description: null
 */


//AES解密
public class test2 {
    public static void main(String[] args) {
        AES aes = new AES(Mode.CBC, Padding.PKCS5Padding, "w2SIy2Hx%2i!tTCd-ikwHEv_kQmB58xI".getBytes(), "R7#54X&gLB!6Q&s=".getBytes());
        String content = "CWsu8qaLo2Epz70JqDDutNZ5BmIsAafjknj9xhYT/fAWaaKHwZ4r3MJD06x9CbYZdvdgAc7UR5HMKPRvHbzC883D55U23DPlz3FqQaCZnOHuabQz/FpvhLMJMXeIGXwOiAjqNxxknGG4bAYT5YF6omOn7JcYamgX8A3TC7K8BkUMOKUNdHrxegNeJiNY8GVh+8f2XSn9oxs0YTyQd31YiVuzNFjEkg6oWLk+O2WigbvZQBx+7s2X/aMFvoYZ4HEOFPwrPPWYwkJGjXG5DibhBd+tXudK1C/9Ffjv0BHzkjwnL8EdhpF5Sz7ygvN0ubjuyKz7CLkXEJAv+R95s8Mt47u/EYjxLH5Vosdlm/imK8rPByJastIvJ3DfHMFFmCDBDGL3g6By2l3kZIzj01iqQMjm268QXt+tZpyueY5vHRllCwSz44RIyOHG7h2OCYgkGBeup/+OO1SustVX6iMv/jccH/HNayUGgjMy91EPxhi8wMbIL1ag0DZ5c8h9xZn+T/dssRIhSaxruvuCeq28a+FvgGp8mS0di5fSBxM9PFkqHwpUOU7qMVvpk5xPp8/SLO2Gylk1kY8lOC71duSOBfwEqq7rhl4Ais5bZvvCNqw4VKJLZ433Wo8YVbgEnGi2/doo+6yLV0OuONsdoH5uwRRoWhFNxrtPvRetM9KGIEAX72OwpuTr38jcd1AGWaBAZqBhpj0vxjAZewhlhpEvOOjuMq1HR5n3vq3awoIFt4R946gGZi0p4XSPJG6zHr7uQYo0b5Q8t6z+bc0bTRLMUhM4Tyxl7/SQmVQg2P7w5j1ofZIferwCBstULzw9ufya1S+j4BWanBqEE2zyAvDysxxai/7sqdKRp7oac2UJiNMDU4DW5EkDayk+PjtyqtFAY4IyaGTlnBQ+uuu5RfT+MqyQrStFunKxQdrr2N8wQ1IIqEzwy/GkTZNffzGPjCvPz9yEXsxq+XzXHZKIu+VP4Ji30JYWoeXX5MH1RJ11k4lOrUmWyFmgyYL4tnW0dSgGL/W6WFDDMZFCqcd+nsRBOw==";
        String decryptStr = aes.decryptStr(content, CharsetUtil.CHARSET_UTF_8);
        System.out.println(decryptStr);
    }
}
